package com.monster.springboot.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.monster.dubbo.springboot.common.model.entity.UserEntity;
import com.monster.dubbo.springboot.common.service.IUserService;
import org.springframework.stereotype.Component;

/**
 * description:
 *
 * @author Yuanml on 2020/12/15 10:46
 */
@Component
@Service(version = "1.0.0", interfaceClass = IUserService.class)
public class UserServiceImpl implements IUserService {
    @Override
    public UserEntity queryById(Integer id) {
        UserEntity userEntity = new UserEntity();
        userEntity.setId(id);
        userEntity.setName("user" + id);
        return userEntity;
    }
}
